<?php
declare (strict_types = 1);

namespace app\mini\controller;

use app\admin\model\Setting;
use app\admin\model\Slideshow;
use think\response\Json;
use app\mini\model\MiniAppointmentModel;
use app\crm\model\Customer as CustomerModel;
use app\mini\model\PersonCustomer;
use app\crm\model\Setting as SettingModel;
use app\mini\model\PersonCase as PersonCaseModel;
use app\crm\model\ReturnVist;
use app\admin\model\File as FileModel;

use think\facade\Db;

class MiniAppointment extends Access
{
    /**
     * 获取预约护理师列表
     */
    public function getShopPerson(): Json
    {
        $request = $this->request->param();

        $model = new MiniAppointmentModel();

        if($request['shop_id']){

            $data = $model->getShopPerson($request);

            return resultArray(['error' => '获取成功', 'data' => $data]);

        }else{

            return resultArray(['error' => '暂无分配门店']);

        }

        
    }
}